class ReportsController < ApplicationController
  before_filter :admin_login_required
  
  def user
    @users = User.find(:all,  :conditions => { :role => 'PDUser' })
    if params[:id]
      @user = User.find(params[:id])
      @pdsessions = @user.pdsessions.find(:all, :conditions => { :start_lt => Time.now })
    end
  end
  
  
  def summary
    @users = User.find(:all,  :conditions => { :role => 'PDUser' })
  end
  
end
